const Router = require("koa-router");
const user = require("./user");
const account = require("./account");
const auth = require("../../middleware/auth");

const api = new Router({
    prefix: "/api",
});

api.use("/user", auth, user.routes(), user.allowedMethods());
api.use("/account", account.routes(), account.allowedMethods());

module.exports = api;
